﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace demo.Entity
{
    public class Users
    {
        [Display(Name = "Id")]
        public int Id { get; set; }

        [Display(Name = "账号")]
        [StringLength(30)]
        public string Account { get; set; }

        [Display(Name = "姓名")]
        [StringLength(30)]
        public string Name { get; set; }

        [Display(Name = "密码")]
        [StringLength(30)]
        public string Password { get; set; }

        [Display(Name = "状态")]
        public Status Status { get; set; }

        [Display(Name = "邮箱")]
        [StringLength(30)]
        public string Email { get; set; }

        [Display(Name = "手机号")]
        [StringLength(30)]
        public string MobilePhone { get; set; }

        [Display(Name = "文件路径")]
        [StringLength(500)]
        public string FilePath { get; set; }

        [Display(Name = "存储节点")]
        [StringLength(500)]
        public string FileStorageNode { get; set; }

        [Display(Name = "网络路径")]
        [StringLength(500)]
        public string FileNetworkHost { get; set; }
    }
    /// <summary>
    /// 状态
    /// </summary>
    public enum Status
    {
        /// <summary>
        /// 启用
        /// </summary>
        [Description("启用")]
        Enabled=0,

        /// <summary>
        /// 禁用
        /// </summary>
        [Description("禁用")]
        Disabled=1

    }
}
